const minidb = require('./minidb.js');
const tablename = 'demo';

module.exports = {
  get: async () => minidb.get(tablename, []),
  add: async (value) => {
    const result = minidb.get(tablename, []);
    minidb.set(tablename, result.push(value) && result);
  },
};